package com.apanal.qlife.sys.model;

import com.apanal.qlife.common.model.BaseModel;

/**
 * 一对多信息查看记录实体类
 * 
 * 
 * @author shuliangxing
 * 
 * @date 2015-11-2下午3:53:03
 */
public class Records extends BaseModel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6017828863030946362L;

	/**
	 * id
	 */
	private Long recId;

	/**
	 * 用户id,外键
	 */
	private Long useId;

	/**
	 * 类型所对应表的外键id,如广告表id
	 */
	private Long foreignId;

	/**
	 * 类型 1:社区通知 2:社区广告 3:系统通知 4：app通知
	 */
	private Integer recType;

	/**
	 * 标记: 0:未读 1:已读(目前只放已读记录,方便以后扩展)
	 */
	private Integer recFlag;

	public Long getRecId() {
		return recId;
	}

	public void setRecId(Long recId) {
		this.recId = recId;
	}

	public Long getUseId() {
		return useId;
	}

	public void setUseId(Long useId) {
		this.useId = useId;
	}

	public Long getForeignId() {
		return foreignId;
	}

	public void setForeignId(Long foreignId) {
		this.foreignId = foreignId;
	}

	public Integer getRecType() {
		return recType;
	}

	public void setRecType(Integer recType) {
		this.recType = recType;
	}

	public Integer getRecFlag() {
		return recFlag;
	}

	public void setRecFlag(Integer recFlag) {
		this.recFlag = recFlag;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return "Records [recId=" + recId + ", useId=" + useId + ", foreignId="
				+ foreignId + ", recType=" + recType + ", recFlag=" + recFlag
				+ "]";
	}

}